import { useUserStore } from '@/store/userStore';
import { endHttp } from "../../axios"

const baseUrl = 'http://www.biggang.top:8070';
export default {
   home: {
    // 获取管网漏损分析接口
    energyDatabordLeakageAnalysis(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/leakageAnalysis/${userStore.tenantId}`,Query)
    },
    // 获取用水量接口
    energyDatabordWaterConsumption(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/waterConsumption/${userStore.tenantId}`,Query)
    },
    // 获取用电量接口
    energyDatabordPowerConsumption(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/powerConsumption/${userStore.tenantId}`,Query)
    },
    // 获取用气量接口
    energyDatabordGasConsumption(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/gasConsumption/${userStore.tenantId}`,Query)
    },
    // 获取标煤量接口
    energyDatabordStandardCoal(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/standardCoal/${userStore.tenantId}`,Query)
    },
    // 获取人均用能接口
    energyDatabordAverageEnergy(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/averageEnergy/${userStore.tenantId}`,Query)
    },
    // 获取实时压力接口
    energyDatabordRealTimePressure(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/realTimePressure/${userStore.tenantId}`,Query)
    },
    // 获取定额考核接口
    energyDatabordQuotaAssessment(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/quotaAssessment/${userStore.tenantId}`,Query)
    },
    // 获取设备总览接口
    energyDatabordEquipmentOverview(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/equipmentOverview/${userStore.tenantId}`,Query)
    },
    // 获取告警信息接口
    energyDatabordAlarmInfo(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/alarmInfo/${userStore.tenantId}`,Query)
    },
    // 获取节水数据接口
    energyDatabordWaterSave(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/waterSave/${userStore.tenantId}`,Query)
    },
    // 获取能耗走势数据接口
    energyDatabordEnergyTrend(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/energyTrend/${userStore.tenantId}`,Query)
    },
    // 获取学校名称
    energyDatabordCollegeName(Query){
      const userStore = useUserStore();
      return endHttp.get(`${baseUrl}/energyDatabord/collegeName/${userStore.tenantId}`,Query)
    },
  }
}
